package com.quwan.chat.module;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author quan
 * @date 2021-09-02 18:08
 */

@Accessors(chain = true)
@Data
public class DataContent {

    @ApiModelProperty("当前连接用户id")
    private String connectId;

    @ApiModelProperty("发送消息用户id")
    private String senderId;

    @ApiModelProperty("接收消息用户id")
    private String receiverId;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("业务 添加 websocket 连接自定义事件\n" +
            "消息动作：\n" +
            "0代表用户是连接操作(connectId 必须参数)\n" +
            "1代表是用户互动聊天(senderId  receiverId content sessionId 必须参数)")
    private String type;

    @ApiModelProperty("sessionId(会话Id)")
    private String sessionId;
    private Date date;
}
